﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jacaranda.Model
{
    public class SearchPageCriteria : SearchPaginationCriteria
    {
        public int PageIndex { get; set; }

        public int PageSize { get; set; }

        internal override int SelectStart
        {
            get { return (PageIndex - 1) * PageSize + 1; }
        }

        internal override int PageLength
        {
            get { return PageSize; }
        }
    }
}
